const path = require('path')
const isDev = process.env.NODE_ENV === 'development'

module.exports = {
  publicPath: '/mindmap/',
  outputDir: './dist', // 打包dist所在路径
  lintOnSave: false,
  productionSourceMap: false,
  transpileDependencies: ['simple-mind-map'],
  configureWebpack: {
    resolve: {
      alias: {
        '@': path.resolve(__dirname, './src/')
      }
    }
  },
  devServer: {
    host: '0.0.0.0',
    port: 8080, // 这是可选的，你可以根据需要设置端口号
    disableHostCheck: true, // 如果需要禁用host检查，请添加这一行,
  },
}
